/**custom**/

@tab: ~"@{css-prefix}tabs";
@tab-pane: ~"@{css-prefix}tab-pane";
.@{tab}{
  position: relative;
  .tabs-wrap {
    overflow: hidden;
  }
  .tabs-header {
    display: flex;
    .sh-tabs-title {
      margin-top: 1px;
      max-width: 176px;
      line-height: 1;
      span {
        white-space: nowrap;
        word-break: keep-all;
        height: 14px;
        display: block;
        overflow: hidden;
      }
    }
  }
  .more-btn {
    display: block;
    position: absolute;
    right: 0;
    top: 2px;
    z-index: 99;
    cursor: pointer;
    line-height: 44px;
    padding: 0 16px;
    background: @placeholder-color;
    box-shadow: 0px -1px 1px 1px rgba(218,218,218, .5);
    .hidden-ul {
      width: 300px;
      padding: 20px 0;
      position: absolute;
      right: 0;
      top: 46px;
      background: @component-background;
      max-height: 800px;
      overflow: auto;
      box-shadow:0px 0px 5px 1px rgba(218,218,218, .5);
      .sh-tabs-active {
        color: @primary-color;
        background: @component-background;
        z-index: 99;
      }
      .sh-tabs-title {
        position: relative;
        line-height: 30px;
        padding: 0 30px;
      }
      .sh-tabs-title:hover {
        background: @background-color-base;
        .close-icon {
          opacity:1
        }
      }
      .close-all {
        border-top: 1px solid #F4F4F4;
        line-height: 1;
        padding: 10px 30px;
      }
    }
  }
  .more-btn:hover {
    background: #D8DDE7;
  }
  .default {
    padding-left: 48px;
    border-bottom: 2px solid @border-color-split;
    .sh-tabs-title {
      cursor: pointer;
      border-bottom: 4px solid transparent;
      padding: 20px;
      margin-bottom: -2px;
    }
    .sh-tabs-active{
      color: @primary-color;
      border-color: @primary-color;
      z-index: 5;
    }
  }
  .card {
    .sh-tabs-title {
      transition: all 200ms linear;
      cursor: pointer;
      padding: 16px 3%;
      position: relative;
      background: @placeholder-color;
      border-radius: @border-radius-small @border-radius-small 0 0;
      box-shadow:1px -1px 1px 1px rgba(218,218,218, .5);
    }
    .sh-tabs-title:hover {
      z-index: 1000 !important;
      background: @tabs-bg;
      .close-icon {
        opacity:1
      }
    }
    .not-first {
      margin-left: -4px;
    }
    .sh-tabs-active {
      color: @primary-color;
      background: @component-background;
      z-index: 800 !important;
    }
    .sh-tabs-active:hover {
      background: @component-background;
    }
    .close-icon {
      border-radius: 50%;
    }
  }
  &-middle {
    .card {
      .sh-tabs-title {
        padding: 13px 2.38%;
        span {
          height: 12px;
          font-size: @font-size-base;
        }
      }
      .close-icon {
        right: 8px;
      }
    }
    .more-btn {
      line-height: 37px;
      padding: 0 13px;
    }
  }
  &-small {
    .card {
      .sh-tabs-title {
        padding: 10px 1.82%;
        span {
          height: 12px;
          font-size: @font-size-small;
        }
      }
      .close-icon {
        right: 8px;
      }
    }
    .more-btn {
      line-height: 30px;
      padding: 0 9px;
    }
  }
  .close-icon {
    position: absolute;
    right: 10px;
    opacity:0;
    transition: all 200ms linear;
    top: 50%;
    transform: translateY(-50%);
    color: #8F9BB2;
  }
  .sh-tabs-disabled {
    color: @btn-disable-color;
    cursor: @cursor-disabled;
  }
}